/*
 * ThreadException.cpp
 *
 *  Created on: 9 déc. 2013
 *      Author: Raphaël
 */

#include <sstream>
#include "ThreadException.h"

namespace raph
{
/*-------------------------------------------------------------------
 constructor/destructor
 -------------------------------------------------------------------*/
ThreadException::ThreadException(const std::string &msg, int line, const std::string& file)
	{
	std::ostringstream oss;
	oss << "line " << line << " - " << file << " : " << msg;
	m_errorMsg = oss.str();
	}

ThreadException::~ThreadException() noexcept
	{

	}

/*-------------------------------------------------------------------
 public methods
 -------------------------------------------------------------------*/
const char* ThreadException::what() const noexcept
	{
	return m_errorMsg.c_str();
	}

} /* namespace raph */
